package com.atmc.service;

import com.atmc.entity.ResponseResult;
import com.atmc.entity.User;
import com.atmc.entity.UserPotrait;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


@Service
public interface UserService {
    User selectOne(String userName);
    User selectOneById(Long userId);
    int insertOne(User user);
    int updateOne(User user);
    UserPotrait selectOneByName(@Param("userName") String userName);
    List<UserPotrait> selectAllPotrait();
    int updateUserSex(@Param("userName") String userName, @Param("sex") String sex);
    public ResponseResult updateUserInfo(String userName,
                                         String sex,
                                         MultipartFile file);
}
